 
export function injectionEvent(event, reset = "reset") {
    let getEvent = event.target.getAttribute("event");

    if (["click", "reset"].includes(getEvent)) { 
      let parentEl = event.target.parentNode;
      let runtext = parentEl.previousElementSibling.innerText;
      let nextres = parentEl.nextSibling; //输出
      if (getEvent == reset) {
        //重置按钮
        nextres.nextSibling.innerHTML = "";
        event.target.setAttribute("event", getEvent);
        return;
      } else {
        //不是重置按钮
        event.target.removeAttribute("event");
        event.target.onclick = function() {
          runtext=runtext.substr(0,runtext.length-1)
          nextres.nextSibling.innerHTML = new Function(runtext)()
        };
        event.target.click();
        event.target.onclick=function(){}
      }
    }
    event.stopPropagation();
    return;
  }